package fl.ass.service.dao;

import cn.cmm.base.framework.exception.BaseException;
import fl.ass.facade.condition.AssTrailCarMQueryCondition;
import cmm.service.core.framework.dao.IBaseDao;
import fl.ass.service.po.AssTrailCarM;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  @Description: 拖车信息主表 持久层
 *  @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 */
public interface AssTrailCarMMapper extends IBaseDao<AssTrailCarM,AssTrailCarMQueryCondition>{

    /**
     * 通过渠道Id关联明细表
     * @param condition
     * @return
     * @throws BaseException
     */
    public List<AssTrailCarM> selectListByChnIds(@Param("condition") AssTrailCarMQueryCondition condition) throws BaseException;

    /**
     * 根据产品明细id查车贷支付表
     * @param prjPrdDtlId
     * @return
     * @throws BaseException
     */
    List<Long> searchPrjPrdPaySchIdsByPrjPrdDtlId(@Param("prjPrdDtlId") Long prjPrdDtlId) throws BaseException;

}
